﻿<?php
class zStringUtils{

	function scapeJavaScript($s) {
	    return preg_replace('/([^ !#$%@()*+,-.\x30-\x5b\x5d-\x7e])/e',
	        "'\\x'.(ord('\\1')<16? '0': '').dechex(ord('\\1'))",$s);
	}
}
$StringBuffer = new zStringUtils();
?>